From c484bcfab7b7544237e045d993b0abb71f4ab72e Mon Sep 17 00:00:00 2001 From: "iap10@tetris.cl.cam.ac.uk" Date: Wed, 13 Apr 2005 22:13:14 +0000 Subject: [PATCH] bitkeeper revision 1.1159.258.91 (425d997aPeMVaT8eLqm62dnz9Sko4w) Better default for dom0 memory. Add Xen cmd line parameter to set max number of CPUs ("maxcpus"). This doesn't change the enumeration order, so you may wish to use it in conjunction with 'noht'. --- xen/arch/x86/setup.c | 2 +- xen/arch/x86/smpboot.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c index 1de2e2d71d..3b1bfc2092 100644 --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -22,7 +22,7 @@ #include /* opt_dom0_mem: Kilobytes of memory allocated to domain 0. */ -static unsigned int opt_dom0_mem = 16000; +static unsigned int opt_dom0_mem = 64000; integer_param("dom0_mem", opt_dom0_mem); /* diff --git a/xen/arch/x86/smpboot.c b/xen/arch/x86/smpboot.c index e3e152bb49..6cf1c5f3da 100644 --- a/xen/arch/x86/smpboot.c +++ b/xen/arch/x86/smpboot.c @@ -51,8 +51,10 @@ #ifdef CONFIG_SMP -/* Setup configured maximum number of CPUs to activate */ +/* Cconfigured maximum number of CPUs to activate. We name the parameter +"maxcpus" rather than max_cpus to be compatible with Linux */ static int max_cpus = -1; +integer_param("maxcpus", max_cpus); /* Total count of live CPUs */ int smp_num_cpus = 1; -- 2.30.2